package cn.edu.hbsi.domain;

public class Car
{
    private Integer cId;
    private String carInfo;
    private Driver driver;

    public Car() {
    }

    public Car(String carInfo, Driver driver) {
        this.carInfo = carInfo;
        this.driver = driver;
    }

    public Car(Integer cId, String carInfo, Driver driver) {
        this.cId = cId;
        this.carInfo = carInfo;
        this.driver = driver;
    }

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getCarInfo() {
        return carInfo;
    }

    public void setCarInfo(String carInfo) {
        this.carInfo = carInfo;
    }

    public Driver getDriver() {
        return driver;
    }

    public void setDriver(Driver driver) {
        this.driver = driver;
    }

    @Override
    public String toString() {
        return "Car{" +
                "cId=" + cId +
                ", carInfo='" + carInfo + '\'' +
                ", driver=" + driver +
                '}';
    }
}
